package com.fifth.emp.controller.api;

import com.fifth.common.pojo.entity.EmpInfo;
import com.fifth.emp.service.EmpService;
import com.fifth.emp.vo.EmpInfoVo;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @作者：刘壬杉
 * @创建时间 2022/8/31 11:47
 **/
@RestController
@RequestMapping("api/emp")
public class ApiEmpController {
    @Autowired
    private EmpService empService;

    /**
     * 根据tel查询用户信息
     * @param telephone
     * @return
     */
    @GetMapping("findByPhone/{telephone}")
    public EmpInfo findByPhone(@PathVariable String telephone){
        return empService.findByPhone(telephone);
    }


}
